package com.nanjia.boot.myflow.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nanjia.boot.myflow.order.dto.OrderDTO;
import com.nanjia.boot.myflow.order.model.entity.Order;
import com.nanjia.boot.myflow.order.model.query.OrderQuery;
import com.nanjia.boot.myflow.order.model.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单主Mapper接口
 *
 * @author 周洋
 * @since 2025-07-11 11:49
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 获取订单主分页数据
     *
     * @param page        分页对象
     * @param queryParams 查询参数
     * @return {@link Page<OrderVO>} 订单主分页列表
     */
    Page<OrderVO> getOrderPage(Page<OrderVO> page, OrderQuery queryParams);

    List<OrderDTO> orderDTOList(@Param("queryParams") OrderQuery queryParams);
}
